/**
 * Analyzer Configuration Schemas
 * Defines parameters, types, default values, and validation rules.
 */
export const AnalyzerConfigSchemas = {
    // Fast Pass (Quick In/Out) Analyzer
    'FastPassAnalyzer': {
        name: '资金快进快出分析',
        description: '检测资金在短时间内流入后迅速流出的异常行为',
        parameters: [
            {
                id: 'timeWindowHours',
                label: '时间窗口 (小时)',
                type: 'range',
                min: 0.1,
                max: 48,
                step: 0.1,
                defaultValue: 2,
                required: true,
                description: '资金流入和流出的最大时间间隔',
                recommendations: {
                    high: 1,
                    medium: 2,
                    low: 6
                }
            },
            {
                id: 'minAmount',
                label: '最小金额 (元)',
                type: 'number',
                min: 0,
                defaultValue: 50000,
                required: true,
                description: '纳入分析的最小交易金额',
                recommendations: {
                    high: 10000,
                    medium: 50000,
                    low: 100000
                }
            },
            {
                id: 'amountMatchRatio',
                label: '金额匹配比例',
                type: 'range',
                min: 0.5,
                max: 1.0,
                step: 0.05,
                defaultValue: 0.8,
                required: true,
                description: '流出金额占流入金额的最小比例 (0.8 = 80%)'
            }
        ]
    },

    // Big Amount Analyzer (Example)
    'BigAmountAnalyzer': {
        name: '大额交易分析',
        description: '筛选超过指定阈值的大额交易',
        parameters: [
            {
                id: 'threshold',
                label: '大额阈值 (元)',
                type: 'number',
                min: 0,
                defaultValue: 200000,
                required: true
            }
        ]
    }
};
